Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make debugger expand relative paths to absolute #19

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

trogper
Copy link

@trogper trogper commented Apr 8, 2020

I have encountered issues with setting breakpoints in modules loaded using require, which uses absolute paths.
Using relative paths brings problems in conjunction with the vscode extension, which might find the same file in multiple sourcesRoot directories. Absolute paths would solve this.

debugger class now has a public method set_working_dir, which accepts char*.
If the method is not called, the old behaviour is preserved - relative paths are not expanded.

server class gets cwd in main and handles it to the debugger.

this PR is related to vscode-lrdb PR 13

@coveralls
Copy link

coveralls commented Apr 8, 2020

Coverage Status

Coverage decreased (-5.7%) to 77.814% when pulling 41f7e5f on kapecp:master into 6837898 on satoren:master.

@satoren satoren changed the base branch from master to main December 31, 2020 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants